/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.poll.om.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hopes.bizz.poll.analy.dto.AnalyzeTrendDTO;
import com.hopes.bizz.poll.om.dto.PollRtDataDTO;
import com.hopes.bizz.poll.om.entity.BaseOmDataEntity;
import com.hopes.bizz.poll.om.entity.PollDayEntity;

import java.util.Date;
import java.util.List;

/**
 * 日监控数据历史
 *
 * @author pig
 * @date 2023-05-23 14:00:05
 */
public interface PollDayService extends IService<PollDayEntity>, OmHJ212DataService, PollAnalysisService, MonitorHisService {
    /**
     * 根据监控点及数据类型删除的所有数据
     *
     * @param omDataEntity
     */
    void deleteByMonitorSiteIdAndDataTime(BaseOmDataEntity omDataEntity);

    /**
     * 查询数据
     *
     * @param analyzeTrendDTO 查询对象
     * @return 结果
     */
    List<BaseOmDataEntity> listOmDayList(AnalyzeTrendDTO analyzeTrendDTO, List<String> factorCodeList);

    List<BaseOmDataEntity> listOmDayByDateRangeAndSite(Date beginTime, Date endTime, List<Long> monitorSiteList);

    //上传数据
    List<PollDayEntity> uploadData(List<PollRtDataDTO> pollUploadDataList);
}
